package com.example.selectdorm;

import com.example.selectdorm.entity.DormitoryRoom;
import com.example.selectdorm.entity.UserAuthCode;
import com.example.selectdorm.entity.UserInfo;
import com.example.selectdorm.repo.DormitoryRoomRepository;
import com.example.selectdorm.repo.UserAuthCodeRepository;
import com.example.selectdorm.repo.UserInfoRepository;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
public class SelectDormApplication {

    public static void main(String[] args) {
        SpringApplication.run(SelectDormApplication.class, args);
    }

//    @Bean
//    CommandLineRunner commandLineRunner(UserAuthCodeRepository userAuthCodeRepository) {
//        return args -> {
//            UserAuthCode userAuthCode = new UserAuthCode(
//                    6L,
//                    "user6"
//            );
//            userAuthCodeRepository.save(userAuthCode);
//        };
//    }
}
